/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package videoclub;

import java.util.Scanner;

/**
 *
 * @author avanza
 */
public class VideoClub {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String op = new String();
        Scanner entrada = new Scanner(System.in);
        Gestion miGestion = new Gestion();
        
    
        do{
            
           
            System.out.println("-----------MENU---------");
            System.out.println("1) ALTA");
            System.out.println("2) ALQUILER");
            System.out.println("3) LISTAR PELICULAS ALQUILADAS");
            System.out.println("4) DEVOLVER PELICULAS");
            System.out.println("5) BUSCAR PELICULA");
            System.out.println("6) SALIR");
            System.out.println("INTRODUZCA UNA OPCION:   ");
            op=entrada.nextLine(); 
            
            if(op.equals("1")){
                
                miGestion.Alta();
                
            }
            if(op.equals("2")){
                
                miGestion.Alquiler();
                
            }
            if(op.equals("3")){
                
                miGestion.Listar();
                
            }
            if(op.equals("4")){
                
                
            }
            if(op.equals("5")){
                
                miGestion.Buscar();
            }
            
            
        }while (op.equals("6")==false);
    }
}
